Ext.define('AmpleHarvest.objects.aqb.search.cGeneralSearch',
		{
			extend			: 'Ext.form.Panel',
			alias			: 'widget.ampleharvest-objects-aqb-search-cgeneralsearch',
			autoHeight		: true,
			frame			: true,
			bodyPadding		: 10,
			preLoad			: function(generalNode, jsonPost)
			{
				for (var int_I = 0; int_I < jsonPost.length; int_I++)
				{
					if (jsonPost[int_I].property == 'general')
					{
						generalNode.setRawValue(jsonPost[int_I].value);
					}
				}
			},
			initComponent	: function()
			{
				var obj_This = this;
				// TODO - handle passed json
//				this.jsonPost = Ext.decode(g_arr_Requests["json"]);
				this.m_obj_TextArea = Ext.create('Ext.form.field.TextArea',
						{
							grow		: true,
							name		: 'general',
							fieldLabel	: 'General',
							anchor		: '100%'
						});

				this.items =
				[
					this.m_obj_TextArea
				];
				this.callParent();

				if (obj_This.jsonPost)
				{
					obj_This.preLoad(obj_This.m_obj_TextArea,
							obj_This.jsonPost.Query
					);
				}
			},

			clearField		: function()
			{
				this.m_obj_TextArea.setRawValue();
			},

			get_QueryObject	: function()
			{
				var obj_Output = new Object();
				var obj_Tmp = new Object();

				obj_Output.Query = new Array();

				obj_Tmp.property = "general";
				obj_Tmp.type = "condition";
				obj_Tmp.condition = "==";
				obj_Tmp.join = "AND";
				obj_Tmp.value = this.m_obj_TextArea.getValue();

				obj_Output.Query.push(obj_Tmp);

				return obj_Output;
			}

		});